<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>

</body>
<script>
    var obj = {
        a:1,
        b:2,
        c:3,
        d:4,
        e:5,
        f:{
            f1:1,
            f2:2
        }
    };

    var result = Object.entries(obj);

    console.log(result);




</script>
</html>